using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Comteck.Winforms.Print {
  public interface IPrintHelper:IDisposable {
    /// <summary>
    /// 格式化待打印字符串
    /// </summary>
    /// <param name="content"></param>
    /// <param name="fontsize"></param>
    /// <param name="paperwidth"></param>
    /// <returns></returns>
    EnumResult PrintTextByPaperWidth(string content, int fontsize, int paperwidth);

    /// <summary>
    /// 打印位图
    /// </summary>
    /// <param name="path">位图路径</param>
    /// <returns></returns>
    EnumResult PrintBitMap(string path);

    /// <summary>
    /// 开始打印
    /// </summary>
    /// <param name="type">打印类型</param>
    /// <param name="mode">打印模式</param>
    /// <param name="itype">打印机接口类型</param>
    /// <returns></returns>
    EnumResult BeginPrint(EnumPrintType type, EnumPrintMode mode = EnumPrintMode.Receipt, EnumPrintInterfaceType itype = EnumPrintInterfaceType.USB, bool isimage = false);

    /// <summary>
    /// 切纸
    /// </summary>
    /// <returns></returns>
    EnumResult CutPager();
  }
}
